atom(script) BindTriggers()
{
	AddTrigger CantSee "@*@Can't See Target@*@"
	AddTrigger InventoryFull "You do not have enough space to loot@*@"
	AddTrigger InventoryFull "Inventory Full"
	AddTrigger TargetEngaged "Target Already Engaged"
}
function CantSee()
{
	EA "TRIGGER" "Can not see Target"
	CantSeeCount:Inc
	if ${CantSeeCount} > 2
	{
		blacklist:Set["${Target.ID}","${Target.Name}"]
		call ClearTarget
		NextTarget:Set[0]
	}
	if ${Math.Distance[${Me.X}, ${Me.Z}, ${Target.X}, ${Target.Z}]} <= 10
	{
		call MoveToTargetRanged
		call TurnStrafe
	}
	else
	{
		call MoveToTargetMelee
	}
}
function InventoryFull()
{
	EA "TRIGGER" "Inventory is Full"
	FullInventory:Set[TRUE]
	press esc
	call ClearTarget
	NextTarget:Set[0]
}
function TargetEngaged()
{
	EA "TRIGGER" "Target Already Engaged"
	blacklist:Set["${Target.ID}","${Target.Name}"]
	call ClearTarget
	NextTarget:Set[0]
}